package FileSubmit

import (
	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/net/ghttp"
)

type CodeFileSubmitReq struct {
	g.Meta   `path:"/api/submit/file" method:"post" mime:"multipart/form-data"`
	Qid      string            `v:"required|length:10,10" p:"qid" dc:"用户Qid"`
	Name     string            `v:"required|passport" p:"username" dc:"用户名"`
	Language string            `v:"required" p:"language" dc:"语言"`
	Problem  string            `v:"required" p:"problem" dc:"题目"`
	File     *ghttp.UploadFile `v:"required" p:"file" type:"file" dc:"文件"`
}

type CodeFileSubmitRes struct {
	Submitid int64 `json:"submitid"`
}
